Klasse DifferencesPNGPresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.ExportPresenter
com.inet.pdfc.presenter.ExportFilePresenter
com.inet.pdfc.presenter.DifferencesPNGPresenter
- Alle implementierten Schnittstellen:
NamedExtension, Cloneable
This presenter generates images for a complete graphical representation of the comparison. Generates one images or if
multiple files must be generated a zip file containing the images. The visual representation is similar to the one of
the i-net PDFC GUI.
NOTE: In case you want to redirect the output to a non-file destination, please overwrite the
NOTE: In case you want to redirect the output to a non-file destination, please overwrite the
ExportFilePresenter.getExportStream() method.-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ExportFilePresenter
ExportFilePresenter.HasPrintRangeVon Klasse geerbte verschachtelte Klassen/Schnittstellen BasePresenter
BasePresenter.ERROR_SOURCE -
Feldübersicht
Von Klasse geerbte Felder ExportPresenter
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHTVon Klasse geerbte Felder BasePresenter
LOGGER, MAX_FILENAME_LENGTH -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDifferencesPNGPresenter(File rootFolder) Creates the presenterDifferencesPNGPresenter(File target, boolean isFolder) Creates the presenter -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected StringGet the extension of the target fileReturns the UNIQUE name of the extension.voidCreates the actual result PDF Called to indicate that a comparison has finished.voidsetSize(int width, int height) Set the size of each image created.spawn(boolean spawnWithParent) Creates another presenter of the the same type as the current one.Von Klasse geerbte Methoden ExportFilePresenter
applyPrintRange, configure, getExportStream, setModel, setPrintRangeVon Klasse geerbte Methoden ExportPresenter
createAndSetupPrintPainter, setBackgroundColor, setOverlapAlpha, setPaintOverlap, setPaintSidesVon Klasse geerbte Methoden BasePresenter
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setParent
-
Konstruktordetails
-
DifferencesPNGPresenter
Creates the presenter- Parameter:
rootFolder- the folder to store the comparison results to.- Seit:
- i-net PDFC 3.0
-
DifferencesPNGPresenter
Creates the presenter- Parameter:
target- the folder or file to store the comparison results to.isFolder- if the target is a folder or a file- Seit:
- i-net PDFC 4.3
-
-
Methodendetails
-
getExtensionName
Returns the UNIQUE name of the extension. With UNIQUE referring to 'unique among all implementations of the same interface'- Gibt zurück:
- the UNIQUE name of the extension
-
onComparisonDone
Creates the actual result PDF Called to indicate that a comparison has finished. This does not imply that any page data or differences are available.- Angegeben von:
onComparisonDonein KlasseBasePresenter- Löst aus:
Exception- thrown in case the processing of the finish step fails
-
getExtension
Get the extension of the target file- Angegeben von:
getExtensionin KlasseExportFilePresenter- Gibt zurück:
- the file extension like .pdf or .png
-
setSize
public void setSize(int width, int height) Set the size of each image created.Default value is 1000x1000 px.
- Parameter:
width- the width of one image in px.height- the height of one image in px.- Seit:
- i-net PDFC 3.0
-
spawn
Creates another presenter of the the same type as the current one. The spawned presenter may either have the same settings as the current one or it may be a child of the current one.- Setzt außer Kraft:
spawnin KlasseBasePresenter- Parameter:
spawnWithParent- if true, the presenter is allowed to keep a reference to it's parent to create a summary on onFinish()- Gibt zurück:
- a new presenter for the same batch comparison run as the current one
-